function countTime(){
    var now = new Date()
    var end = +new Date("2024-7-10 00:00:00")


    var lag = (end-now)/1000
    var h = parseInt(lag/(60*60))
    var m = Math.floor((lag/60)%60)
    var s = Math.floor(lag%60)
    h = h<10?"0"+h:h
    m = m<10?"0"+m:m
    s = s<10?"0"+s:s
    document.getElementById("hour").innerHTML = h
    document.getElementById("minute").innerHTML = m
    document.getElementById("second").innerHTML = s
    setTimeout("countTime()",1000)
}

window.onload = countTime